package com.xyoto.takeawayUser.enums;

/**
 * 用户枚举
 *
 * @author Administrator
 */

public enum UserEnum implements Code {

    /** 用户相关 */
    SAVE_USER_ERROR(1200, "新增用户失败"),
    USER_INFO_NOT_EXIST(1201, "用户信息不存在"),
    GET_USER_FAILED(1202,"获取我的信息失败"),
    USER_UPDATE_INFO_FAILED(1203,"修改我的信息失败"),
    UPDATE_USER_ADDR_FAILED(1204,"修改地址失败"),
    SAVE_USER_ADDR_FAILED(1205,"新增用户地址失败"),

    ;

    private int code;
    private String msg;

    UserEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }

}
